fix: improve self-stake boost visual for block producers#889
Open
molty365 wants to merge 2 commits intotelosnetwork:masterfrom
Open
fix: improve self-stake boost visual for block producers#889molty365 wants to merge 2 commits intotelosnetwork:masterfrom
molty365 wants to merge 2 commits intotelosnetwork:masterfrom
Conversation
❌ Deploy Preview for open-block-explorer failed. Why did it fail? →
|
❌ Deploy Preview for obe-testnet failed. Why did it fail? →
|
- Show actual self-staked TLOS amount instead of raw boost vote weight e.g. '🔒 30,013 TLOS (10x Boost)' instead of '+271,466.0406 Boosted' - Add tooltip with details: staked amount, boost votes, BP count (X/30) - Show '🔒 161,606 TLOS Self Staked' for BPs who self-vote but haven't activated the 10x boost (need to re-vote or change stake) - Use hardcoded 10x multiplier matching system contract logic - Track self_staked_amount and num_producers_voted in Producer type
083d4f2 to
44e35a1
Compare
When viewing a registered producer's account page, the Votes tab now shows a 'Block Producer Self-Stake' section with: - Producer rank and total votes - Number of BPs they vote for (X/30) - Self-staked TLOS amount - 10x boost status: Active / Needs Re-Vote / Not Self-Staking - Boost votes added (when active) Previously this info was only visible on the Vote page list.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Self-Stake Boost UI Improvements
Before
+271,466.0406 Boosted(confusing — not in TLOS)self_stake_boost / 100(fragile, depends on API serialization)After
🔒 30,013 TLOS (10x Boost)🔒 161,606 TLOS Self StakedExample displays
Note
Vote weight card fix is in separate PR #890.
Technical
self_stake_booston-chain isbinary_extension<bool>, API returns 1000 for true